<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cutex: cutex::QxLogger Klassenreferenz</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">cutex
   </div>
   <div id="projectbrief">cute Qt extensions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Erzeugt von Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Suchen','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Suchen');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classcutex_1_1_qx_logger.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Öffentliche Typen</a> &#124;
<a href="#pub-methods">Öffentliche Methoden</a> &#124;
<a href="#pri-attribs">Private Attribute</a> &#124;
<a href="classcutex_1_1_qx_logger-members.html">Aufstellung aller Elemente</a>  </div>
  <div class="headertitle">
<div class="title">cutex::QxLogger Klassenreferenz</div>  </div>
</div><!--header-->
<div class="contents">

<p>Mit der Klasse QxLogger können Einträge in eine Logdatei geschrieben werden.  
 <a href="classcutex_1_1_qx_logger.html#details">Mehr ...</a></p>

<p><code>#include &lt;<a class="el" href="qxlogger_8h_source.html">qxlogger.h</a>&gt;</code></p>
<div class="dynheader">
Klassendiagramm für cutex::QxLogger:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcutex_1_1_qx_logger.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Öffentliche Typen</h2></td></tr>
<tr class="memitem:a72a2049a6036e2c7d43fa3a0c5b0cbf5"><td class="memItemLeft" align="right" valign="top"><a id="a72a2049a6036e2c7d43fa3a0c5b0cbf5"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>LogLevel</b> { <b>Debug</b> = 0
, <b>Info</b>
, <b>Warning</b>
, <b>Critical</b>
 }</td></tr>
<tr class="separator:a72a2049a6036e2c7d43fa3a0c5b0cbf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Öffentliche Methoden</h2></td></tr>
<tr class="memitem:aa9b6b099808fec154b33d8f5a260b786"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#aa9b6b099808fec154b33d8f5a260b786">QxLogger</a> (QObject *parent=nullptr)</td></tr>
<tr class="separator:aa9b6b099808fec154b33d8f5a260b786"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3ef03d422dca44096995d083e94715b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#ae3ef03d422dca44096995d083e94715b">~QxLogger</a> ()</td></tr>
<tr class="separator:ae3ef03d422dca44096995d083e94715b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c77fad116c2f8c1f79114bb6aab9db1"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#a9c77fad116c2f8c1f79114bb6aab9db1">fileName</a> () const</td></tr>
<tr class="separator:a9c77fad116c2f8c1f79114bb6aab9db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc7c5677b8e9c35afba777b21b1c651"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#abbc7c5677b8e9c35afba777b21b1c651">setFileName</a> (const QString &amp;<a class="el" href="classcutex_1_1_qx_logger.html#a9c77fad116c2f8c1f79114bb6aab9db1">fileName</a>)</td></tr>
<tr class="separator:abbc7c5677b8e9c35afba777b21b1c651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f0820ad3ea31c9b46fa9329d525a65e"><td class="memItemLeft" align="right" valign="top">LogLevel&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#a2f0820ad3ea31c9b46fa9329d525a65e">logLevel</a> () const</td></tr>
<tr class="separator:a2f0820ad3ea31c9b46fa9329d525a65e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8655e57816cc7643ad634588131266e8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#a8655e57816cc7643ad634588131266e8">setLogLevel</a> (LogLevel level)</td></tr>
<tr class="separator:a8655e57816cc7643ad634588131266e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac627d6a1dd829d40b92c710952dfcc4c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#ac627d6a1dd829d40b92c710952dfcc4c">maxLines</a> () const</td></tr>
<tr class="separator:ac627d6a1dd829d40b92c710952dfcc4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9433ea9484dc01da8a96b03b6e048841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#a9433ea9484dc01da8a96b03b6e048841">setMaxLines</a> (int count)</td></tr>
<tr class="separator:a9433ea9484dc01da8a96b03b6e048841"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebb92d888a5a4d4d92264704e35e9856"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#aebb92d888a5a4d4d92264704e35e9856">log</a> (LogLevel level, const QString &amp;text)</td></tr>
<tr class="separator:aebb92d888a5a4d4d92264704e35e9856"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca9d52f64f719223bad17c800870deec"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcutex_1_1_qx_logger.html#aca9d52f64f719223bad17c800870deec">cleanUp</a> ()</td></tr>
<tr class="separator:aca9d52f64f719223bad17c800870deec"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attribute</h2></td></tr>
<tr class="memitem:a559b5ac8e2e14f59c8cb03853de8f1bd"><td class="memItemLeft" align="right" valign="top"><a id="a559b5ac8e2e14f59c8cb03853de8f1bd"></a>
QFile&#160;</td><td class="memItemRight" valign="bottom"><b>m_file</b></td></tr>
<tr class="separator:a559b5ac8e2e14f59c8cb03853de8f1bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a383f479e952aa4a71a2b9ea0f2c806d7"><td class="memItemLeft" align="right" valign="top"><a id="a383f479e952aa4a71a2b9ea0f2c806d7"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_dateFormat</b></td></tr>
<tr class="separator:a383f479e952aa4a71a2b9ea0f2c806d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4082d3e1d02a7ac5e2f1211bcaa8a7d0"><td class="memItemLeft" align="right" valign="top"><a id="a4082d3e1d02a7ac5e2f1211bcaa8a7d0"></a>
LogLevel&#160;</td><td class="memItemRight" valign="bottom"><b>m_logLevel</b></td></tr>
<tr class="separator:a4082d3e1d02a7ac5e2f1211bcaa8a7d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc65ddb8abfd82adebbf21c2517ab018"><td class="memItemLeft" align="right" valign="top"><a id="acc65ddb8abfd82adebbf21c2517ab018"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_maxLines</b></td></tr>
<tr class="separator:acc65ddb8abfd82adebbf21c2517ab018"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Ausführliche Beschreibung</h2>
<div class="textblock"><p>Mit der Klasse QxLogger können Einträge in eine Logdatei geschrieben werden. </p>
<p>QxLogger stellt Funktionen zum schreiben von Einträgen in eine Logdatei zur Verfügung. Eine Instanz dieser Klasse wird automatisch zusammen mit <a class="el" href="classcutex_1_1_qx_application.html" title="Die Klasse QxApplication erweitert QApplication um cutex-spezifische Features.">QxApplication</a> erzeugt. Nach dem setzten des Dateinamens mit <a class="el" href="classcutex_1_1_qx_logger.html#abbc7c5677b8e9c35afba777b21b1c651">setFileName()</a> können die Makros QX_LOG_DEBUG, QX_LOG_INFO, QX_LOG_WARNING und QX_LOG_CRITICAL verwendet werden um Einträge in die Logdatei zu schreiben.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_application.html" title="Die Klasse QxApplication erweitert QApplication um cutex-spezifische Features.">QxApplication</a> </dd></dl>
</div><h2 class="groupheader">Beschreibung der Konstruktoren und Destruktoren</h2>
<a id="aa9b6b099808fec154b33d8f5a260b786"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9b6b099808fec154b33d8f5a260b786">&#9670;&nbsp;</a></span>QxLogger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxLogger::QxLogger </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>nullptr</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Erzeugt ein neues Logging-Objekt mit dem Elternobjekt <em>parent</em>. </p>

</div>
</div>
<a id="ae3ef03d422dca44096995d083e94715b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3ef03d422dca44096995d083e94715b">&#9670;&nbsp;</a></span>~QxLogger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxLogger::~QxLogger </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Schließt die Logdatei und zerstört das Objekt. </p>

</div>
</div>
<h2 class="groupheader">Dokumentation der Elementfunktionen</h2>
<a id="aca9d52f64f719223bad17c800870deec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca9d52f64f719223bad17c800870deec">&#9670;&nbsp;</a></span>cleanUp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QxLogger::cleanUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Löscht ältere Einträge aus der Logdatei.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#a9433ea9484dc01da8a96b03b6e048841">setMaxLines(int count)</a> </dd></dl>

</div>
</div>
<a id="a9c77fad116c2f8c1f79114bb6aab9db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c77fad116c2f8c1f79114bb6aab9db1">&#9670;&nbsp;</a></span>fileName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QxLogger::fileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gibt den Pfad zur Logdatei zurück.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#abbc7c5677b8e9c35afba777b21b1c651">setFileName(const QString &amp;fileName)</a> </dd></dl>

</div>
</div>
<a id="aebb92d888a5a4d4d92264704e35e9856"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebb92d888a5a4d4d92264704e35e9856">&#9670;&nbsp;</a></span>log()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QxLogger::log </td>
          <td>(</td>
          <td class="paramtype">LogLevel&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Schreibt einen Eintrag mit dem Loglevel <em>level</em> und dem Text <em>text</em> in die Logdatei. </p>

</div>
</div>
<a id="a2f0820ad3ea31c9b46fa9329d525a65e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f0820ad3ea31c9b46fa9329d525a65e">&#9670;&nbsp;</a></span>logLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QxLogger::LogLevel QxLogger::logLevel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gibt den aktuellen Loglevel zurück.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#a8655e57816cc7643ad634588131266e8">setLogLevel(LogLevel level)</a> </dd></dl>

</div>
</div>
<a id="ac627d6a1dd829d40b92c710952dfcc4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac627d6a1dd829d40b92c710952dfcc4c">&#9670;&nbsp;</a></span>maxLines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QxLogger::maxLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Gibt die maximale Anzahl an Zeilen zurück.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#a9433ea9484dc01da8a96b03b6e048841">setMaxLines(int count)</a> </dd></dl>

</div>
</div>
<a id="abbc7c5677b8e9c35afba777b21b1c651"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc7c5677b8e9c35afba777b21b1c651">&#9670;&nbsp;</a></span>setFileName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QxLogger::setFileName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Setzt den Pfad der Logdatei auf <em>fileName</em> und öffnet die Datei.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#a9c77fad116c2f8c1f79114bb6aab9db1">fileName()</a> </dd></dl>

</div>
</div>
<a id="a8655e57816cc7643ad634588131266e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8655e57816cc7643ad634588131266e8">&#9670;&nbsp;</a></span>setLogLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QxLogger::setLogLevel </td>
          <td>(</td>
          <td class="paramtype">LogLevel&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Setzt den Loglevel auf den Wert <em>level</em>.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#a2f0820ad3ea31c9b46fa9329d525a65e">logLevel()</a> </dd></dl>

</div>
</div>
<a id="a9433ea9484dc01da8a96b03b6e048841"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9433ea9484dc01da8a96b03b6e048841">&#9670;&nbsp;</a></span>setMaxLines()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QxLogger::setMaxLines </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Setzt die maximale Anzahl an Zeilen auf den Wert <em>count</em>.</p>
<dl class="section see"><dt>Siehe auch</dt><dd><a class="el" href="classcutex_1_1_qx_logger.html#ac627d6a1dd829d40b92c710952dfcc4c">maxLines()</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>cutex</b></li><li class="navelem"><a class="el" href="classcutex_1_1_qx_logger.html">QxLogger</a></li>
    <li class="footer">Erzeugt von <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
